/*******************************************************************************
 * Copyright (c) 2023 Martin Erich Jobst
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Martin Jobst - initial API and implementation and/or initial documentation
 *******************************************************************************/
package org.eclipse.fordiac.ide.structuredtextcore.stcore.util;

public enum AccessMode {
	NONE, READ, WRITE, READ_WRITE;

	/** Merge this with the other access mode
	 *
	 * @param other The other access mode
	 * @return The common access mode */
	public AccessMode merge(final AccessMode other) {
		return AccessMode.values()[ordinal() | other.ordinal()];
	}
}
